/* 个人中心样式优化版 */
.profile-page {
    padding: 4rem 2rem 4rem 2rem;
    min-height: 100vh;
    background-color: #0f172a; /* 更深邃的背景色增强层次感 */
    background-image:
            radial-gradient(circle at 25% 15%, rgba(22, 93, 255, 0.05) 0%, transparent 40%),
            radial-gradient(circle at 75% 85%, rgba(114, 46, 209, 0.05) 0%, transparent 40%);
}

.profile-header {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.25rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 42, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 180, 42, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 42, 0); }
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.profile-main {
    padding: 3rem 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 300px 1fr;
    }
}

.profile-card {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.profile-avatar-container {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.profile-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(22, 93, 255, 0.3);
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.2);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(22, 93, 255, 0.3);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.edit-avatar-btn:hover {
    transform: scale(1.15);
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, var(--light), #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-email {
    color: var(--muted);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.profile-email:hover {
    color: var(--light);
}

.member-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(22, 93, 255, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.member-badge:hover {
    background: rgba(22, 93, 255, 0.2);
    transform: translateY(-2px);
}

.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav li {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-nav li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(22, 93, 255, 0.05);
    transition: width 0.3s ease;
    z-index: 0;
}

.profile-nav li:hover::after {
    width: 100%;
}

.profile-nav li:hover {
    background: transparent;
    color: var(--light);
    transform: translateX(5px);
}

.profile-nav li.active {
    background: rgba(22, 93, 255, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.profile-nav li i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-nav li span {
    position: relative;
    z-index: 1;
}

.logout-item {
    margin-top: 1rem;
    color: #ff4d4f !important;
}

.logout-item:hover {
    background: rgba(255, 77, 79, 0.08) !important;
}

.profile-tab-content,
.settings-tab-content,
.security-tab-content,
.stats-tab-content {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--light), #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    color: var(--muted);
    max-width: 700px;
}

.detail-section {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.info-item label {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.info-item label i {
    font-size: 0.75rem;
}

.status {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status.active {
    background: rgba(0, 180, 42, 0.1);
    color: var(--accent);
}

.status.active:hover {
    background: rgba(0, 180, 42, 0.2);
    transform: translateY(-1px);
}

.edit-profile-btn,
.edit-bio-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-profile-btn:hover,
.edit-bio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(22, 93, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.1);
}

.edit-profile-btn i,
.edit-bio-btn i {
    transition: transform 0.3s ease;
}

.edit-profile-btn:hover i,
.edit-bio-btn:hover i {
    transform: rotate(90deg);
}

.bio-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.bio-content:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(22, 93, 255, 0.1);
}

.preferences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .preferences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.preference-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.preference-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.theme-options {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.theme-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--darker);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-btn:hover::before {
    opacity: 1;
}

.theme-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
    transform: scale(1.05);
}

.theme-btn.active::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn[data-theme="dark"] {
    background: #1D2129;
}

.theme-btn[data-theme="light"] {
    background: #F7FAFC;
}

.theme-btn[data-theme="auto"] {
    background: linear-gradient(135deg, #1D2129 50%, #F7FAFC 50%);
}

.preference-select {
    padding: 0.75rem;
    background: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--light);
    transition: all 0.3s ease;
}

.preference-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

.settings-grid,
.security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .settings-grid,
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.setting-card,
.security-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.setting-card:hover,
.security-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 93, 255, 0.3);
    box-shadow: 0 10px 25px -5px rgba(22, 93, 255, 0.1);
}

.setting-icon,
.security-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.setting-card:hover .setting-icon,
.security-card:hover .security-icon {
    transform: scale(1.15) rotate(5deg);
}

.setting-icon {
    background: rgba(22, 93, 255, 0.1);
    color: var(--primary);
}

.security-card:nth-child(2) .security-icon {
    background: rgba(255, 145, 0, 0.1);
    color: #ff9100;
}

.security-card:nth-child(3) .security-icon {
    background: rgba(0, 180, 42, 0.1);
    color: var(--accent);
}

.security-card:nth-child(4) .security-icon {
    background: rgba(114, 46, 209, 0.1);
    color: var(--secondary);
}

.setting-info,
.security-info {
    flex: 1;
}

.setting-title,
.security-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
    transition: color 0.3s ease;
}

.setting-card:hover .setting-title,
.security-card:hover .security-title {
    color: var(--primary);
}

.setting-desc,
.security-desc {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.security-status {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.security-status.secure {
    background: rgba(0, 180, 42, 0.1);
    color: var(--accent);
}

.security-status.warning {
    background: rgba(255, 145, 0, 0.1);
    color: #ff9100;
}

.security-status.pending {
    background: rgba(22, 93, 255, 0.1);
    color: var(--primary);
}

.security-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.setting-arrow,
.security-arrow {
    color: var(--muted);
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.setting-card:hover .setting-arrow,
.security-card:hover .security-arrow {
    color: var(--primary);
    transform: translateX(5px) rotate(10deg);
}

.account-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .account-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.action-card.warning {
    border-color: rgba(255, 145, 0, 0.2);
}

.action-card.danger {
    border-color: rgba(255, 77, 79, 0.2);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.action-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-card.warning .action-icon {
    background: rgba(255, 145, 0, 0.1);
    color: #ff9100;
}

.action-card.danger .action-icon {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}

.action-info {
    flex: 1;
}

.action-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.action-desc {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-card.warning .action-btn {
    color: #ff9100;
    border-color: rgba(255, 145, 0, 0.2);
}

.action-card.warning .action-btn:hover {
    background: rgba(255, 145, 0, 0.1);
    border-color: rgba(255, 145, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.1);
}

.action-card.danger .action-btn {
    color: #ff4d4f;
    border-color: rgba(255, 77, 79, 0.2);
}

.action-card.danger .action-btn:hover {
    background: rgba(255, 77, 79, 0.1);
    border-color: rgba(255, 77, 79, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.1);
}

.security-score-card {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.security-score-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

@media (min-width: 640px) {
    .security-score-card {
        flex-direction: row;
        align-items: center;
    }
}

.score-info {
    flex: 1;
}

.score-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    position: relative;
    overflow: hidden;
}

.score-value::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(22, 93, 255, 0.1), transparent);
    border-radius: 2px;
}

.score-value span {
    font-size: 1rem;
    color: var(--light);
    margin-left: 0.25rem;
}

.score-desc {
    color: var(--muted);
    font-size: 0.875rem;
    max-width: 400px;
}

.security-progress {
    flex: 2;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0.375rem;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0) 50%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.improve-security-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.improve-security-btn:hover {
    background: rgba(22, 93, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
}

.improve-security-btn i {
    transition: transform 0.3s ease;
}

.improve-security-btn:hover i {
    transform: translateX(3px);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(22, 93, 255, 0.2);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
}

.stat-card:nth-child(1) .stat-icon {
    background: rgba(22, 93, 255, 0.1);
    color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
    background: rgba(114, 46, 209, 0.1);
    color: var(--secondary);
}

.stat-card:nth-child(3) .stat-icon {
    background: rgba(0, 180, 42, 0.1);
    color: var(--accent);
}

.stat-card:nth-child(4) .stat-icon {
    background: rgba(255, 145, 0, 0.1);
    color: #ff9100;
}

.stat-label {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-label i {
    font-size: 0.75rem;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-value {
    color: var(--primary);
}

.stat-trend {
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-trend {
    transform: translateX(3px);
}

.stat-trend.up {
    color: var(--accent);
}

.stat-trend.down {
    color: #ff4d4f;
}

.stat-trend.stable {
    color: var(--muted);
}

.chart-section {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chart-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.chart-container {
    height: 250px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.6), transparent 20%);
    z-index: 1;
    pointer-events: none;
}

.chart-placeholder {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(22, 93, 255, 0.2);
    transition: all 0.3s ease;
}

.chart-section:hover .chart-placeholder i {
    transform: scale(1.1) rotate(5deg);
    color: rgba(22, 93, 255, 0.3);
}

.chart-filters {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-btn.active {
    background: rgba(22, 93, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.1);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    transform: translateY(-2px);
}

.recent-activity {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(15, 23, 42, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.1);
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recent-activity:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.activity-item:hover .activity-icon {
    transform: scale(1.15);
}

.activity-icon {
    background: rgba(22, 93, 255, 0.1);
    color: var(--primary);
}

.activity-item:nth-child(2) .activity-icon {
    background: rgba(114, 46, 209, 0.1);
    color: var(--secondary);
}

.activity-item:nth-child(3) .activity-icon {
    background: rgba(0, 180, 42, 0.1);
    color: var(--accent);
}

.activity-info {
    flex: 1;
}

.activity-text {
    margin-bottom: 0.25rem;
    color: var(--light);
    transition: color 0.3s ease;
}

.activity-item:hover .activity-text {
    color: var(--primary);
}

.activity-time {
    color: var(--muted);
    font-size: 0.8125rem;
    transition: color 0.3s ease;
}

.activity-item:hover .activity-time {
    color: var(--light);
}

.view-all-activity {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.view-all-activity:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(22, 93, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.1);
}

.view-all-activity i {
    transition: transform 0.3s ease;
}

.view-all-activity:hover i {
    transform: rotate(180deg);
}

.profile-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #0f172a;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0  auto 1.5rem;

    box-shadow: 0 0 20px rgba(22, 93, 255, 0.1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mt-8 {
    margin-top: 2rem;
}

/* 个人中心标题美化样式 */
.profile-title {
    font-size: 2.25rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin: 0 0 2rem 0;
    padding-bottom: 0.75rem;
    background: linear-gradient(90deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.025em;
}

.profile-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform-origin: left center;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-title:hover::after {
    width: 100px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .profile-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .profile-title::after {
        width: 40px;
        height: 3px;
    }

    .profile-title:hover::after {
        width: 70px;
    }
}
